// import Axios from '../libs/AxiosPlugin'
import Axios from "~/ajax/AxiosPlugin";

const basePath = "http://localhost:8090"


export const login = params => {
  return Axios.post(`${basePath}/auth/login`, params)
    .then(res => {
        return res;
      }
    )
}
export const test = params => {
  return Axios.post(`${basePath}/test`, params)
    .then(res => {
        return res;
      }
    )
}
export const test3 = params => {
  return Axios.get(`http://localhost:8081/users`, params)
    .then(res => {
        return res;
      }
    )
}
export const test4 = params => {
  return Axios.get(`http://localhost:8081/5e23c23bc52be964ba2d38c9`, params)
    .then(res => {
        return res;
      }
    )
}
export const upgrade1 = params => {
  return Axios.post(`${basePath}/upgrade/1`, params)
    .then(res => {
        return res;
      }
    )
}
export const upgrade2 = params => {
  return Axios.post(`${basePath}/upgrade/2`, params)
    .then(res => {
        return res;
      }
    )
}